Integrand size = 11, antiderivative size = 52 \[ \int x \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx=\frac {1}{8} \sqrt {\pi } \text {erf}\left (\frac {1}{2} (-1-2 x)\right )-\frac {1}{8} \sqrt {\pi } \text {erfi}\left (\frac {1}{2} (1+2 x)\right )+\frac {1}{2} \sinh \left (\frac {1}{4}+x+x^2\right ) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.455, Rules used = {5491, 5483, 2266, 2235, 2236} \[ \int x \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx=\frac {1}{8} \sqrt {\pi } \text {erf}\left (\frac {1}{2} (-2 x-1)\right )-\frac {1}{8} \sqrt {\pi } \text {erfi}\left (\frac {1}{2} (2 x+1)\right )+\frac {1}{2} \sinh \left (x^2+x+\frac {1}{4}\right ) \]
[In]
[Out]
Rule 2235
Rule 2236
Rule 2266
Rule 5483
Rule 5491
Rubi steps \begin{align*} \text {integral}& = \frac {1}{2} \sinh \left (\frac {1}{4}+x+x^2\right )-\frac {1}{2} \int \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx \\ & = \frac {1}{2} \sinh \left (\frac {1}{4}+x+x^2\right )-\frac {1}{4} \int e^{-\frac {1}{4}-x-x^2} \, dx-\frac {1}{4} \int e^{\frac {1}{4}+x+x^2} \, dx \\ & = \frac {1}{2} \sinh \left (\frac {1}{4}+x+x^2\right )-\frac {1}{4} \int e^{-\frac {1}{4} (-1-2 x)^2} \, dx-\frac {1}{4} \int e^{\frac {1}{4} (1+2 x)^2} \, dx \\ & = \frac {1}{8} \sqrt {\pi } \text {erf}\left (\frac {1}{2} (-1-2 x)\right )-\frac {1}{8} \sqrt {\pi } \text {erfi}\left (\frac {1}{2} (1+2 x)\right )+\frac {1}{2} \sinh \left (\frac {1}{4}+x+x^2\right ) \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.46 \[ \int x \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx=\frac {2 \left (-1+\sqrt {e}\right ) \cosh (x (1+x))-\sqrt [4]{e} \sqrt {\pi } \text {erf}\left (\frac {1}{2}+x\right )-\sqrt [4]{e} \sqrt {\pi } \text {erfi}\left (\frac {1}{2}+x\right )+2 \left (1+\sqrt {e}\right ) \sinh (x (1+x))}{8 \sqrt [4]{e}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.05 (sec) , antiderivative size = 49, normalized size of antiderivative = 0.94
method | result | size |
risch | \(-\frac {{\mathrm e}^{-\frac {\left (1+2 x \right )^{2}}{4}}}{4}-\frac {\operatorname {erf}\left (\frac {1}{2}+x \right ) \sqrt {\pi }}{8}+\frac {{\mathrm e}^{\frac {\left (1+2 x \right )^{2}}{4}}}{4}+\frac {i \sqrt {\pi }\, \operatorname {erf}\left (i x +\frac {1}{2} i\right )}{8}\) | \(49\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 106 vs. \(2 (28) = 56\).
Time = 0.25 (sec) , antiderivative size = 106, normalized size of antiderivative = 2.04 \[ \int x \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx=\frac {2 \, \cosh \left (x^{2} + x + \frac {1}{4}\right )^{2} + 4 \, \cosh \left (x^{2} + x + \frac {1}{4}\right ) \sinh \left (x^{2} + x + \frac {1}{4}\right ) + 2 \, \sinh \left (x^{2} + x + \frac {1}{4}\right )^{2} - \sqrt {\pi } {\left (\cosh \left (x^{2} + x + \frac {1}{4}\right ) \operatorname {erf}\left (x + \frac {1}{2}\right ) + \cosh \left (x^{2} + x + \frac {1}{4}\right ) \operatorname {erfi}\left (x + \frac {1}{2}\right ) + {\left (\operatorname {erf}\left (x + \frac {1}{2}\right ) + \operatorname {erfi}\left (x + \frac {1}{2}\right )\right )} \sinh \left (x^{2} + x + \frac {1}{4}\right )\right )} - 2}{8 \, {\left (\cosh \left (x^{2} + x + \frac {1}{4}\right ) + \sinh \left (x^{2} + x + \frac {1}{4}\right )\right )}} \]
[In]
[Out]
\[ \int x \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx=\int x \cosh {\left (x^{2} + x + \frac {1}{4} \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 123 vs. \(2 (28) = 56\).
Time = 0.27 (sec) , antiderivative size = 123, normalized size of antiderivative = 2.37 \[ \int x \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx=\frac {1}{2} \, x^{2} \cosh \left (x^{2} + x + \frac {1}{4}\right ) + \frac {{\left (2 \, x + 1\right )}^{3} \Gamma \left (\frac {3}{2}, \frac {1}{4} \, {\left (2 \, x + 1\right )}^{2}\right )}{4 \, {\left ({\left (2 \, x + 1\right )}^{2}\right )}^{\frac {3}{2}}} - \frac {{\left (2 \, x + 1\right )}^{3} \Gamma \left (\frac {3}{2}, -\frac {1}{4} \, {\left (2 \, x + 1\right )}^{2}\right )}{4 \, \left (-{\left (2 \, x + 1\right )}^{2}\right )^{\frac {3}{2}}} - \frac {1}{16} \, e^{\left (\frac {1}{4} \, {\left (2 \, x + 1\right )}^{2}\right )} - \frac {1}{16} \, e^{\left (-\frac {1}{4} \, {\left (2 \, x + 1\right )}^{2}\right )} - \frac {1}{4} \, \Gamma \left (2, \frac {1}{4} \, {\left (2 \, x + 1\right )}^{2}\right ) + \frac {1}{4} \, \Gamma \left (2, -\frac {1}{4} \, {\left (2 \, x + 1\right )}^{2}\right ) \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.27 (sec) , antiderivative size = 43, normalized size of antiderivative = 0.83 \[ \int x \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx=-\frac {1}{8} \, \sqrt {\pi } \operatorname {erf}\left (x + \frac {1}{2}\right ) - \frac {1}{8} i \, \sqrt {\pi } \operatorname {erf}\left (-i \, x - \frac {1}{2} i\right ) + \frac {1}{4} \, e^{\left (x^{2} + x + \frac {1}{4}\right )} - \frac {1}{4} \, e^{\left (-x^{2} - x - \frac {1}{4}\right )} \]
[In]
[Out]
Timed out. \[ \int x \cosh \left (\frac {1}{4}+x+x^2\right ) \, dx=\int x\,\mathrm {cosh}\left (x^2+x+\frac {1}{4}\right ) \,d x \]
[In]
[Out]